package com.migu.rbac;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.stereotype.Controller;
//
//*
// * @Description TODO :
// * @Author: zj
// * @Date: 17:23 2019/4/12
// * @Version 1.0
// *

@SpringBootApplication
@MapperScan("com.migu.*")
@Controller
@EnableFeignClients
@EnableCaching
@EnableAsync
public class ManageApplication {
//    public static void postInit() {
//        ApplicationContext
//                .getBean(DaoSecurityMetadataSource.class)
//                .init(applicationContext.getBean(SysBackApiRepository.class), applicationContext.getBean(SysMenuRepository.class));
//    }

    // static ConfigurableApplicationContext applicationContext;

    public static void main(String[] args) {
        SpringApplication.run(ManageApplication.class, args);
        System.out.println("创建成功");
        //postInit();
    }

}
